package com.lsl.data_bus.example.data;

import java.time.LocalDateTime;

/**
 * description:
 *
 * @author: liushengli
 * data: 2023/1/12
 */
public class StoppingData extends AbstractDataType {

    private final LocalDateTime when;

    public StoppingData(LocalDateTime when) {
        this.when = when;
    }

    public LocalDateTime getWhen() {
        return when;
    }

    public static DataType of(final LocalDateTime when) {
        return new StoppingData(when);
    }
}